import alias from "@rollup/plugin-alias";
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
const path = require('path');

export default defineConfig({

  plugins: [alias(), vue()],
  resolve: {
    alias: {
      "/@": path.resolve(__dirname, "./src"),
    },
  },
  build: {
    rollupOptions: {
      external: ['utils', 'vue', '@dcloudio/uni-app']
    }
  }
})